The Dreamweaver JavaScript API > JavaScript Debugger functions > dreamweaver.startDebugger()

 

dreamweaver.startDebugger()

Availability

Dreamweaver 4.0

Description

Opens the Debugger window with original source .htm file and .js files listed in sourceFileList(), then launches the browser with the debug version file specified by debugFileName(). This function does not prompt the user if it cannot determine the browser type.

The creation of the debug version is accomplished with a call to dom.instrumentDocument().

Arguments

debugFileName, sourceFileList, isTempFiles, {browserName}

debugFileName is the name of a debug version file to launch in the browser.
sourceFileList is an array of URL pairs comprising42the source file and the instrumented file; the first pair is the .htm file and subsequent pairs are the external .js files. Each URL is expressed as an absolute file URL.
isTempFiles is a Boolean indicating whether the instrumented files should be tracked and deleted the next time the debugger is launched, or when Dreamweaver shuts down.
browserName is optional; it specifies the name of the target browser as defined in the Preview settings in Browser Preferences. It can also be 'primary' or 'secondary'. If omitted, the primary browser is used by default.

Returns

Nothing.